"""
@Project:workflow_python
@File:redis.py
@Author:袁浩天
@Date:9:33
"""


from django.conf import settings
import redis

def redis_conn():
    host = settings.REDIS_HOST
    port = settings.REDIS_PORT
    password = settings.REDIS_PASSWORD
    db = settings.REDIS_DB
    redis_conn = redis.Redis(host=host, port=port, password=password, db=db)
    return redis_conn


